package com.ruoyi.app.model.vo;

import com.ruoyi.common.annotation.DataSource;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class RegisterReq {


    @ApiModelProperty(notes = "手机号")
    @NotBlank(message = "手机号不可为空！")
    @Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式有误")
    private String phone;


    @ApiModelProperty(notes = "验证码")
    @NotBlank(message = "验证码不可为空！")
    private String code;

    @ApiModelProperty(notes = "性别: 男/女")
    @NotBlank(message = "性别不可为空！")
    private String sex;
}
